package org.dromara.apartment.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.apartment.domain.ViewAppointment;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 预约看房信息视图对象 view_appointment
 *
 * @author CKJ
 * @date 2025-06-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ViewAppointment.class)
public class ViewAppointmentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 预约id
     */
    @ExcelProperty(value = "预约id")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "用户姓名")
    private String name;

    /**
     * 用户手机号码
     */
    @ExcelProperty(value = "用户手机号码")
    private String phone;

    /**
     * 公寓ID
     */
    @ExcelProperty(value = "公寓ID")
    private Long apartmentId;

    /**
     * 房间ID
     */
    @ExcelProperty(value = "房间ID")
    private Long roomId;

    /**
     * 预约时间
     */
    @ExcelProperty(value = "预约时间")
    private Date appointmentTime;

    /**
     * 备注信息
     */
    @ExcelProperty(value = "备注信息")
    private String additionalInfo;

    /**
     * 预约状态（1:待看房，2:已取消，3已看房）
     */
    @ExcelProperty(value = "预约状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "appoint_room_status")
    private Integer appointmentStatus;

    /**
     * 公寓信息
     */
    private ApartmentInfoVo apartmentInfoVo;


}
